package com.sevenGroup.pawnshop.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("账号对象")
public class AccountAndUserForm {

    @ApiModelProperty("账号名")
    @Length(min = 1)
    private String accountUsername;
    @ApiModelProperty("账号密码")
    @Length(min = 1)
    private String accountPassword;
    @ApiModelProperty("手机号")
    private String accountTel;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("邮箱")
    private String userEamil;
    @ApiModelProperty("头像地址URL")
    private String userHeader;
    @ApiModelProperty("地址")
    private String userAddress;
    @ApiModelProperty("年龄")
    private Integer userAge;
    @ApiModelProperty("账号ID")
    private Integer accountId;
    @ApiModelProperty("角色ID")
    private Integer roleId;
    @ApiModelProperty("角色权限")
    private String roleManage;
    @ApiModelProperty("角色名")
    private String roleName;
    @ApiModelProperty("门店ID")
    private Integer storeId;
    @ApiModelProperty("门店名")
    private String storeName;
}
